// MainActivity.java
package com.example.passwordguard;

import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import androidx.appcompat.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        Button addButton = findViewById(R.id.addButton);
        Button viewButton = findViewById(R.id.viewButton);

        addButton.setOnClickListener(v -> startActivity(new Intent(MainActivity.this, AddPassword.class)));
        viewButton.setOnClickListener(v -> startActivity(new Intent(MainActivity.this, ViewPasswords.class)));
    }
}